🦚 Simple Approach || Easy Code !! || Simple & Concise Code || C++ Code Reference !
Intuition\n- Intuition Is On Sleep Mode.\n# Code\ncpp [There You Go !]\n\n    string digitSum(string s, int k) {\n        \n      int sum=0;\n      string t="";
# Intuition\n- Intuition Is On Sleep Mode.\n# Code\n```cpp [There You Go !]\n\n    string digitSum(string s, int k) {\n        \n      int sum=0;\n      string t="";  \n\n      while(s.length()>k)\n      {\n        for(int i=0;i<s.length();i++)\n        {\n          sum += (s[i]-\'0\');\n\n          if((i+1)%k ==0 || i==s.length()-1)\n            t+=to_string(sum), sum=0;\n        }\n        s=t,t="";\n\n      }\n\n      return s;\n    }\n\n```
['String', 'Simulation', 'C++']