Domanda di colloquio di Pinterest

Given an array, split it into 2 separate arrays based on height or something