C++| Easy 4 line solution
Code\n\nclass Solution {\npublic:\n    int furthestDistanceFromOrigin(string moves) {\n        int l = 0, r = 0, dash = 0;\n        for(auto ch : moves) {\n    
# Code\n```\nclass Solution {\npublic:\n    int furthestDistanceFromOrigin(string moves) {\n        int l = 0, r = 0, dash = 0;\n        for(auto ch : moves) {\n            if(ch == \'L\') l++;\n            else if(ch == \'R\') r++;\n            else dash++;\n        }\n        return max(l+dash-r, r+dash-l);\n    }\n};\n```
['C++']