Solution for Problem 14

need to add recursive function to calculate steps. too slow