{"ScriptPreparationCode":null,"TestCases":[{"Name":"regex","Code":"const regex = /(00|11|22|33|44|55|66|77|88|99)/;\r\nlet num = 3298;\r\nnum = num \u002B 1;\r\nlet aux = (num).toString();\r\n\r\nwhile (regex.test(aux)) {\r\n num \u002B= 1;\r\n aux = num.toString();\r\n}\r\n","IsDeferred":false},{"Name":"loop","Code":"let num = 3298;\r\nconst consecutiveChars = function(num) {\r\n const arr = num.toString().split(\u0027\u0027);\r\n for (let idx = 0; idx \u003C arr.length - 1; idx\u002B\u002B) {\r\n if (arr[idx] == arr[idx \u002B 1])\r\n return true;\r\n }\r\n\r\n return false;\r\n}\r\n\r\nnum = num \u002B 1;\r\nwhile (consecutiveChars(num)) {\r\n num\u002B\u002B;\r\n}\r\n","IsDeferred":false}]}