Company question banks are included with the Insider plan.
Write an algorithm to determine if a number n is happy.
n
A happy number is defined by the following process: