My combined submission for LeetCode