{"ScriptPreparationCode":"var sampleString = \u0027abcdefghijklmnopqrstuvwxyz\u0027;\r\n\r\nvar recurseFindIndex = (charArray, i = 0) =\u003E {\r\n const [curr, ...rest] = charArray;\r\n if (curr === \u0027z\u0027) return i;\r\n else return recurseFindIndex(rest, i \u002B 1);\r\n};","TestCases":[{"Name":"findIndex","Code":"sampleString.split(\u0027\u0027).findIndex(char =\u003E char === \u0027z\u0027);","IsDeferred":false},{"Name":"Recursion","Code":"recurseFindIndex(sampleString);","IsDeferred":false}]}