Pregunta de entrevista de Amazon

Tree and array based along wit dynamic programming