Bosch interview question

Solve some algorithmic coding problem