committing leetcode besttimetobuyandsellstock