SAP Interview Question

sorted array longest common prefix