_Sam's submission of Product on Tree | CodeChef