I saw how everyone was using n % 9 and faster solutions. I kinda did my the brute-force way. Would it be okay for interviews?

```
func addDigits(num: Int) -> Int {
var total = num
var adding = 0
while (total >= 0)
{
adding += total % 10
total = total / 10
if (total < 10)
{
if (total + adding < 10)
{
break
}
adding += total % 10
total = adding
adding = 0
}
}
return adding + total
```

}