Deloitte interview question

A few logical questions, like puzzles and some technical questions on Java.