The is the solution of the K&R v2 sloutions.