Domanda di colloquio di Hopper

Some basic algorithms problem about terminal commands