Domanda di colloquio di Infosys

write a program to find longest common prefix