Domanda di colloquio di Paytm Labs

Write a function to flatten an array and a binary search question