Solve problem 82 using Go.