Question d’entretien chez Fidelity International

Finding a specific substring in a string without using inbuilt functions and further modified the question