Just try to solve the problem in leetcode