you give stre s length n consist lowercase English lettersfor give string s t S set distinct character s t set distinct character t the string s t isomorphic length equal onetoone mapping bijection f S T fsiti Formally fsiti index character exactly character fxy character exactly character fxy for example string aababc bbcbcz isomorphic Also string aaaww wwwaa isomorphic the follow pair string isomorphic aab bbb test bestyou handle m query characterized integer xylen 1xynlen1 for query check substring sx xlen1 sy ylen1 isomorphic