Pergunta de entrevista da empresa Fidessa

Rearrange and return collections of numbers input to a function to satisfy certain constraints