HackerRank Triangle Quest 2 in python problem solution - TheCScience