Solution in Java and C
Code
# Code

```Java []
class Solution {
    public int furthestDistanceFromOrigin(String moves) {
        int len = moves.length();
        int Lcount = 0, Rcount = 0, UnderscoreCount = 0;
        for (int i = 0; i < len; i++) {
            if (moves.charAt(i) == 'L')
                Lcount++;
            else if (moves.charAt(i) == 'R')
                Rcount++;
            else
                UnderscoreCount++;
        }
        return (Lcount < Rcount) ? Rcount - Lcount + UnderscoreCount : Lcount - Rcount + UnderscoreCount;
    }
}
```
```c []
int furthestDistanceFromOrigin(char* moves) {
    int len = strlen(moves);
    int Lcount = 0, Rcount = 0, UnderscoreCount = 0;
    for (int i = 0; i < len; i++) {
        if (moves[i] == 'L')
            Lcount++;
        else if (moves[i] == 'R')
            Rcount++;
        else
            UnderscoreCount++;
    }
    return (Lcount < Rcount) ? Rcount - Lcount + UnderscoreCount : Lcount - Rcount + UnderscoreCount;
}
```
['String', 'C', 'Counting', 'Java']