C++ [Easy] 🔥🎊
Code
# Code
```cpp []
class Solution {
public:
    bool hasSameDigits(string s) {
        while (true) {
            string str = "";
            for (int i = 0; i < s.length() - 1; ++i) {
                str += (((s[i] + s[i + 1]) % 10) + '0');
            }

            if (str.length() == 2) {
                if (str[0] == str[1]) {
                    return true;
                } else if (str[0] != str[1]) {
                    return false;
                }
            } else if (str.length() > 2) {
                s = str;
            }
        }

        return 1;
    }
};
```
['String', 'C++']