Happy number

Sign in to test your solution.