One In Another
In this program you are given with two strings, you need to find character of string2 in string1, once it is find then get index of that character and return the same else returns zero.
Input:
adf6ysh
123456
output: 3
Input:
adf6ysh
123455
output: 0
Input:
adf6ysh
123456
output: 3
Input:
adf6ysh
123455
output: 0
Comments
Post a Comment