Pergunta de entrevista da empresa Chubb

one recursion question and one question of prefix sum/difference array topic