SquadStack.ai Interview Question

1. Rotated sorted array problem from leetcode.