i3systems interview question

Basic programming and a few puzzles :D who asks puzzels nowadays? :D