Avishake Maji's submission of F-E | CodeChef