added solution to p3 in Go