Alien Numbers - C Solution