Javascript Array And String Problems Codeforces Solutions