Pergunta de entrevista da empresa Trilogy Innovations

All 3 questions on prefix sum and dp