Pregunta de entrevista de S&P Global

Binary search implementation,Oops based questions