SquadStack.ai interview question

1. Rotated sorted array problem from leetcode.