Ayush Bansal's submission of Factorisation | CodeChef