P16 solution
P17 solution