Domanda di colloquio di Rupeek

Basic data structures and DP based question.