My code for Leet Code