add p8 solution in go