Pergunta de entrevista da empresa Meta

Partition array in two subsets such that they have equal sum