Leetcode Not A Query Object Oriented Concepts In Python