My AC code for LeetCode Online Judge