Yahoo Interview Question

Leetcode Easy - happy number