Deloitte interview question

Basic Coding Question Puzzles HR