State Street interview question

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