Pregunta de entrevista de Infosys

write a program to find longest common prefix