Practice program questions from leetcode.