I\'ve written this code for searching using the concept of finding number of rotations in a sorted array. I\'ve first found the number of rotations performed on the sorted array