Shubham Jain's submission of D-Dimensional MST | CodeChef