added solution to p4 in go