Solved SearchInRotatedArray II problem