Deloitte interview question

Basic Syntax and OOPs concept