Solve problem 78 using Go.