Adobe interview question

Various puzzles and basic programming