Google Interview Question Leetcode Solutions Python