Beyondsoft Group Interview Question

Find The Longest Common Prefix