Leetcode Javascript Class Extends Python Programming