Added Go solution to problem 40