Pregunta de entrevista de Meta

Partition array in two subsets such that they have equal sum