Solve the searching in rotated sorted array for the new online judge.