Swift | Concise
**\n\nclass Solution {\n    func furthestDistanceFromOrigin(_ moves: String) -> Int {\n        var l=0, r=0\n        for ch in moves {\n            l += ch == "
**\n```\nclass Solution {\n    func furthestDistanceFromOrigin(_ moves: String) -> Int {\n        var l=0, r=0\n        for ch in moves {\n            l += ch == "R" ? -1 : 1\n            r += ch == "L" ? -1 : 1\n        }\n        return max(l,r)\n    }\n}\n```
['Swift']