Pregunta de entrevista de Deloitte

Some hard DP problem and Trees Problem