Ivan Kazmenko's submission of Minimum Distance | CodeChef