Question: Function description Complete the firstOccurence function provided in the editor. This function takes the following 2 parameters and returns the answer: A: Represents the first

Function description
Complete the firstOccurence function provided in the editor. This function takes the following 2 parameters and returns the answer:
A: Represents the first string
B. Represents the second string
Input format
Note: This is the input format that you must use to provide custom input (available above the Compile and Test button).
The first line contains an integer T denoting ?I the number of test cases. T also denotes the number of times you have to run the firstOccurence function on a different set of inputs.
For each test case:
The first line contains a string A consists of lowercase English letters.
The second line contains a string B of consists of lowercase English letters.
Output format
For each test case, print the answer in a new line.
&Previous Question
Next Question >
 Function description Complete the firstOccurence function provided in the editor. This

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!