Add a Go solution to problem 12.