Adobe interview question

puzzles and basic programming