Nagarro interview question

Rorated sorted array using binary search