Leetcode Same Code Different Runtime Polymorphism Example