Prashant Mahesh's submission of Sereja and LCM | CodeChef