Add eighth problem solution