Typescript Split String Into Two Strings Codeforces