Maybe it was expected to use a regular expression, but I used an iterative approach for this.
The key in these questions is to cover the fundamentals, and be ready for the back-and-forth with the interviewer. Might be worth doing a mock interview with one of the DeliveryHero or ex-DeliveryHero Android Software Engineer experts on Prepfully? They give real-world practice and guidance, which is pretty helpful. prepfully.com/practice-interviews
Me already asking myself if this is really serious... Writing code on a white board?
It depends... what is the purpose? 200 is a hard limit, or are we expecting more element to be loaded? Where will the code be used? First viable product, refactoring or optimization? Do we already have a utility library, or this is a one-off case? Without context it would be easiest to write the for(i=0;i<200;i++)(//code) JS.
I'm sorry that you didn't have a good experience at Motius. Unfortunately, without valid receipts and tickets our Finance department can't refund expenses. From what I saw when looking into that process, our colleagues from Finance asked you twice and also I've sent you an email a couple of weeks later. Obviously we want to cover your expenses from the Experience Day as we promised. Please send me an email directly and we can find a way of refunding it anyway.