Pergunta de entrevista da empresa Google

A dp question on partition problem