Implement classes in existing abstract hierarchy | Bloomberg Interview Question