Deloitte interview question

Basic logical and arithmetic questions.