add happy number in ruby