The Brachistochrone Problem: From Euler to Quantum