## 题目

Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.

Example: