5. (10%) "Fermat's principle" states that the path taken between two points by a ray of light is the least-time path. Derive Snell's law using "Fermat's principle".