ZS Associates interview question

How to program vacuum robot