Problem 004 is done! Not super efficient, but done

AND CORRECT!