Code for practicing on LeetCode