1Find with indexOfeasy · 10 minShow the index where the pattern first appears.Acceptance criteria1.#out should show at 6.TaskHints 0/1Solution