Argusoft interview question

Some puzzles