Max's submission of Tree Product | CodeChef