Fastenal Interview Question

Pillars Of OOPs, Longest Common Prefix