Thank you. I did a two solution for it which the first one is just literally looks for the string "needle" and then the other one is to apply my first approach which is to convert the values inside of the array to string which is unnecessary but yea just to make it possible with case insensitive haha.
It's in the kata description.
Thank you. I did a two solution for it which the first one is just literally looks for the string "needle" and then the other one is to apply my first approach which is to convert the values inside of the array to string which is unnecessary but yea just to make it possible with case insensitive haha.
Somehow a bit stupid...
In the condition it is necessary to indicate that we are looking for the index of the element and not its position!!!