Search in Rotated Sorted Array

Solution Code

Time Complexity

O(log n)

Space Complexity

O(1)