SCAN - Simulation

Direction:


Output of the algorithm: