Solve problem 32 using Go.