Hemant Joshi's submission of Valid Triangles | CodeChef