**Problem Statement:**
Given the required input arguments, write an efficient algorithm to solve the **Longest Common Prefix** problem. Implement the required logic as specified by standard definitions for this classic algorithmic challenge.
**Hint / Expected Approach:**
Vertical scan or sort + compare first/last
**Edge Cases to Consider:**
- (1) Empty array
- (2) No common prefix
- (3) One string is prefix of another