Domanda di colloquio di Presidio

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