Pergunta de entrevista da empresa Paytm Labs

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