My solution on LeetCode OnlineJudge