my solution for leetCodeOJ