Ericsson interview question

Krishnamurthy number program was asked to check aptitude.