Sorted And Rotated Minimum Leetcode Javascript Problems