Zeus Learning Pvt. Ltd interview question

they asked 2 puzzles and one java program