Tiancheng Lou's submission of Factor Tree | CodeChef