Pregunta de entrevista de Amazon

Coding Questions on Binary search, and Dynamic Programing