Question d’entretien chez Infosys

write a program to find longest common prefix