Pergunta de entrevista da empresa S&P Global

Binary search implementation,Oops based questions