Find Transition Point Leetcode Two