[ Update ] Problem 12 improved C algorithm