Index Of First Occurrence In String Leetcode Questions On Array