Frage im Vorstellungsgespräch bei Bright Data

It was a LeetCode-style task about array transformation