HackerRank Sum and Prod in python problem solution - TheCScience