Avishake Maji's submission of F-D | CodeChef