Solve Problem 99: Calculate Distance