ok, first up you need to use the cin object in stdio to read a number
so you need an "int n; " somewhere at the top of your function, and cin >> n; to get that number from the keyboard.
now you have the number, how do you get the 1st digit?
I am going to assume the number is an integer in base 10, and we don't need to do any error checking (mostly because i am lazy)
we are lucky (if you can call it that for more complex problems) that the '/' operator discards fractions for integer arguments, so n/1000 takes off the last 3 digits,
now how do we get the last digit? n%10 (% is the modulus operator, it returns the remainder when dividing the first argument by the second)
so, this is a function that will do that, what they mean by a program that 'obtains' a number is beyond me, but this is a start (btw i have in no way checked this, but i have reason to believe it will work)
int firstLastSum(void){
int n;
cin>>n;
return (n/1000)+(n%10);
}