Epic Interview Question

Some basic programming question, not too hard