Added pe9 solution in c