difference between for and while loop aaj sahi maaino mein pata chala :D
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```cpp []\nclass Solution {\npublic:\n    int minimumMoves(string s) {\nint c=0;\nint i=0;\n        while(i<s.length())\n        {\n            if(s[i]==\'O\')\n               i++;\n            else\n            { \n            c++;\n            i+=3;\n            }\n            \n        }\n        \n        \nreturn c;\n    }\n};\n```
['C++']