rev

The time complexity of this solution is O(n).

Receiver

MutableList