The POSITION_OF subroutine returns the 1-based index representing the first occurrence of a character in a string.
For example:
POSITION_OF("ATCGATTACG", "G") would return 4POSITION_OF("ATCGATTACG", "C") would return 3targetBase and geneSequence are variables used in the algorithm below.
geneSequence ← "ATCGATTACG"
organism ← "E. coli"
OUTPUT "Enter a nucleotide base to search for: "
targetBase ← USERINPUT
Complete the pseudo-code statement to find the first occurrence of the character stored in targetBase within geneSequence and store this position in the variable index.
You must use the POSITION_OF subroutine in your answer.
index ← _______