Search in rotated sorted array - Leetcode 33 - Python