solution to problem number 23 in go