Easy Java Begineer Friendly Solution:
\n\n# Code\n\nclass Solution {\n    public int furthestDistanceFromOrigin(String moves) {\n        int l=0;\n        int r=0;\n        int d=0;\n        for(int
\n\n# Code\n```\nclass Solution {\n    public int furthestDistanceFromOrigin(String moves) {\n        int l=0;\n        int r=0;\n        int d=0;\n        for(int i=0;i<moves.length();i++){\n            char ch=moves.charAt(i);\n            if(ch==\'L\')l++;\n            else if(ch==\'R\')r++;\n            else d++;\n        }\n        if(l>r)l+=d;\n        else r+=d;\n        return Math.abs(l-r);\n    }\n}\n```
['Java']