Solve problem 87 using Go.