Problem 34

Calculates the correct answer but at the cost of a lot of memory
allocation.
Problem 34 - Improved

Improved the performance by removing the memory allocations.