Ivan Mistreanu's submission of Tree Product | CodeChef