Updated Go solution to problem 74