Samarth Gupta's submission of Directing Edges | CodeChef