IIFL Finance interview question

polymorphism