_Sam's submission of Pishty and Triangles | CodeChef