Vivek Gupta's submission of Direct Segments | CodeChef