Amazon Interview Question

A complex glass traversal question, the moon rover