tested suffix array with a Codeforces problem