Pregunta de entrevista de Rupeek

First round questions. First was about DFS and second was subset sum using DP.