Problem 17 finished in golang.