Commit Leetcode: Best time to sell and buy stock