Deloitte interview question

Function overriding with example,