alien-language O(m*n) TLE