Sergey Kulik's submission of Tree Product | CodeChef