Imperative solution to 14.