A number is happy if repeatedly replacing it by the sum of the squares of its digits eventually reaches 1. Return true if n is happy.
Practise this challenge
All coding challenges