Rupeek Interview Question

Basic data structures and DP based question.