Programming exercises from Leetcode