{"ScriptPreparationCode":"var str = \u0027\u0027\r\nfor(let i = 0;i\u003C10000; i\u002B\u002B) {\r\n str\u002B=(Math.random()\u003C.5?\u0027a\u0027:\u0027b\u0027)\r\n}\r\nvar deleted = 0","TestCases":[{"Name":"for loop","Code":"for(let i=0;i\u003Cstr.length;i\u002B\u002B){\r\n if(str[i] === str[i\u002B1]) deleted\u002B\u002B\r\n}\r\nreturn deleted","IsDeferred":false},{"Name":"for of","Code":"var last = \u0027\u0027\r\nfor(let i of str){\r\n if(i === last) deleted\u002B\u002B\r\n last = i\r\n}\r\nreturn deleted","IsDeferred":false}]}