Finished Problem 5 using Stacks it's slower :'(