Minimum of Degrees | CodeChef