Solutions for leet-code