Problem 10 naive solution in golang.