Deloitte Interview Question

Function overriding with example,