HackerRank Words Score in python problem solution - TheCScience