{"ScriptPreparationCode":null,"TestCases":[{"Name":"1","Code":"\r\nfunction rot13(str) { // LBH QVQ VG!\r\n var decode = [];\r\n var decodeString = \u0022\u0022;\r\n for (i = 0; i \u003C str.length; i\u002B\u002B) {\r\n decode.push(str.charCodeAt(i));\r\n if (decode[i] \u003E= 78 \u0026\u0026 decode[i] \u003C= 90) {\r\n decode[i] = decode[i] - 13;\r\n } else if (decode[i] \u003E= 65 \u0026\u0026 decode[i] \u003C 78) {\r\n decode[i] = decode[i] \u002B 13;\r\n }\r\n decodeString \u002B= String.fromCharCode(decode[i]);\r\n }\r\n return decodeString;\r\n}\r\n\r\n// Change the inputs below to test\r\nrot13(\u0022SERR PBQR PNZC\u0022);\r\n","IsDeferred":false},{"Name":"2","Code":"function rot13(str) { // LBH QVQ VG!\r\n return str.replace(/[A-Z]/g, (L) =\u003E String.fromCharCode(65 \u002B (L.charCodeAt(0) - 65 \u002B 13) % 26));\r\n}\r\nrot13(\u0022SERR PBQR PNZC\u0022);","IsDeferred":false}]}