Domanda di colloquio di Super.com

how would you iteratively build this