Domanda di colloquio di Citadel Securities

Solve programming problem in one line