Project Euler 641 - A Long Row of Dice

Official link: https://projecteuler.net/problem=641

Note: My code took 2328 seconds to run, however I am happy with my solution