Frage im Vorstellungsgespräch bei Expedia Group

First coding problem is stars and bars. The other coding problem is inversion.