Solve problem 303 using Go.