Pregunta de entrevista de Amazon Web Services

Binary search algorithm and DP Problem