Masoom Mittal's submission of Beautiful Pairs | CodeChef