Code for leet code submissions