Solution 18 Completed

Removed tree node, used array instead