IBM interview question

Normal problem solving and basic programming.