American Express interview question

basic c, pointers, python basics, riddle, guesstimate