Presidio interview question

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