Primus Software interview question

Basic core Java and Puzzles