First LeetCode problem done.