Kapsch interview question

Coding challenge and system design on white board