Deloitte interview question

Oops concepts and coding questions