Solutions to Coding challenges on LeetCode