• + 0 comments

    why did you use y%s[(x^lastAnswer)%n].size()? in here: -

    lastAnswer=s[(x^lastAnswer)%n][y%s[(x^lastAnswer)%n].size()];

    cause, acc to que, it should be just this much: -

    lastAnswer=s[(x^lastAnswer)%n][y];