Pregunta de entrevista de Pinterest

A problem that combines binary search with dynamic programming.