You receive the sequence . Find the first occurrence of the number in the given sequence.
For example: text — ABRACADABRA, pattern — RA, answer: . The answer is the number of the index of the first character in the pattern. The indexing of characters starts from 0.