Naman Garg's submission of D-Dimensional MST | CodeChef