Pregunta de entrevista de Motorq

mostly array and DP based questions