Naive Algorithm – 2 (First Occurrence)#8227