BMW Group interview question

I had one technical interview and a coding task