Updated Go solution to problem 116