New course! Every coder should learn Generative AI!
Try a free lesson+ 1
How I got answer as 7 in below given code
2 Answers
+ 1
You are starting your search at index 4 therefore the first occurance of 'e' is at index 7.
Index start at 0
+ 1
Thanks FF9900 and William Owens