math's submission of Distinct Codes | CodeChef