Adding temp solution of search rotated sorted array II