BlackRock interview question

Leetcode Happy number search for it