Rotated Array Search - Coding problem | OneNoughtOne