# Push Dominoes

medium

1. There are n dominoes in a line, and we place each domino vertically upright. 2. In the beginning, we simultaneously push some of the dominoes either to the left or to the right. 3. After each second, each domino that is falling to the left pushes the adjacent domino on the left. 4. Similarly, the dominoes falling to the right push their adjacent dominoes standing on the right. 5. When a vertical domino has dominoes falling on it from both sides, it stays still due to the balance of the forces. 6. For the purposes of this question, we will consider that a falling domino expends no additional force to a falling or already fallen domino. 7. You are given a string dominoes representing the initial state where: a). dominoes[i] = 'L', if the ith domino has been pushed to the left, b). dominoes[i] = 'R', if the ith domino has been pushed to the right, and c). dominoes[i] = '.', if the ith domino has not been pushed. 8. Return a string representing the final state.

## Constraints

1. n == dominoes.length 2. 1 <= n <= 10^5 3. dominoes[i] is either 'L', 'R', or '.'

## Format

### Input

1. dominoes = "RR.L" 2. dominoes = ".L.R...LR..L.."

### Output

1. "RR.L" Explanation: The first domino expends no additional force on the second domino. 2. "LL.RR.LLRRLL.."

## Example

Sample Input

RR.L

### Sample Output

RR.L