Deloitte interview question

Basic of programming and oops