Problem 51
-hard problem
-WORKED ON FIRST RUN, WOOOO