equal distinct codechef solution