Max's submission of ONE DISTINCT | CodeChef