Freecodecamp Python And Sql Practice Leetcode Problem 929