My leetCode Solution