State Street Interview Question

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