search in rotated sorted array II sol2 how to decide increasing part