Solution for problem 8; largest product in a sequence