al_jabr's submission of Factor Tree | CodeChef