you give integ n sequence n1 integer element 0 1you ask build string length n letter abcd a_i1 ith suffix string lexicographically small i1th suffix a_i0 ith suffix string lexicographically great i1th suffix you ask q query form 1 le le n 1 flip value a_i a_i0 set a_i 1 vice versa after query print number different string satisfy give constraint modulo 998244353