Pergunta de entrevista da empresa BlackRock

DP and recursion based coding problem