Pregunta de entrevista de Google

Focus on two pointers, graphs, and dp