Kotlin Solution
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```kotlin []
class Solution {
     fun hasSameDigits(s: String): Boolean {

        var current=s

        while (current.length >2){
            current=getStringValues(current)
        }

        return current[0] == current[1]
    }

    private fun getStringValues(s:String) : String{

        val sb=StringBuilder()


        for (i in 0 until s.length - 1) {
            val sum = (s[i] - '0') + (s[i + 1] - '0')
            sb.append(sum % 10)
        }

        return sb.toString()

    }
}
```
['Kotlin']