Anonymous interview question

They asked a dsa question first based on backtracking then on binary search