Question d’entretien chez Presidio

Given an array with 5 strings find the substring without using inbuilt functions.