Deloitte interview question

Java programmering and logical reasoning questions