CTCI: 10.3: Find an element in a sorted array which is rotated