Anonymous Interview Question

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