Masoom Mittal's submission of Nice Pairs | CodeChef