How does light 'know' the shortest path?

Veritasium

Open page