Aleksey Ropan's submission of Tree Product | CodeChef