srm618 div1 250 500 permutation