Pergunta de entrevista da empresa Desquared

Balanced sums problem for the algorithmic part