100.00 % | 0 ms | C++ | easiest solution possible
``` \nclass Solution {\npublic:\n    int minimumMoves(string s) {\n        int n =  s.length() ;\n        int cnt = 0;\n        for(int i = 0 ; i= n-3){\n      
``` \nclass Solution {\npublic:\n    int minimumMoves(string s) {\n        int n =  s.length() ;\n        int cnt = 0;\n        for(int i = 0 ; i<n;i++){\n        if(s[i] == \'X\'){   \n             if(i >= n-3){\n             cnt++;\n                 break;\n             }\n             else {\n                 i= i+2;\n                 cnt++;\n             }\n         }\n    }\n        return cnt;\n    }\n};\n
['Math', 'String']