HackerRank Piling Up! in python problem solution - TheCScience