Beyondsoft Group interview question

Magic number coding question using any programming language.