Learning python by solving leetcode problems