ZS Associates Interview Question

How to program vacuum robot