Modified the optimal answer in Question 11 to use a 1-dimensional array instead of a 2-dimensional array.
Added the solution to Question 12.