Domanda di colloquio di Ferratum Bank

What does this piece of code do in this program?