C++ Clean Solution! ✓
\nclass RLEIterator {\npublic:\n    vector <int> b;\n    int i;\n    RLEIterator(vector<int>& a) {\n        b = a;\n        i = 0;\n    }\n    int next(int n) {
```\nclass RLEIterator {\npublic:\n    vector <int> b;\n    int i;\n    RLEIterator(vector<int>& a) {\n        b = a;\n        i = 0;\n    }\n    int next(int n) {\n        if (i == b.size()) return -1;\n        if (n <= b[i]) {\n            b[i] -= n;\n            return b[i + 1];\n        }\n        n -= b[i];\n        i += 2;\n        return next(n);\n    }\n};\n```
['Recursion', 'C', 'C++']