Domanda di colloquio di State Street

Coding question: if the number is Magic Number or not?