AAAAAAAAAAAAAAAAAAAAAAAAAAA
Code


# Code
```kotlin []
class Solution {
    fun hasSameDigits(s: String): Boolean {
        var current = s.toMutableList()
        while (true) {
            val temp = mutableListOf<Char>()
            for (i in 0 until current.size - 1) {
                val sum = (current[i].code + current[i + 1].code - '0'.code * 2) % 10
                temp.add((sum + '0'.code).toChar())
            }
            if(temp.size == 2) return temp[0] == temp[1]
            current = temp
        }
        return false;
    }
}
```
['Kotlin']