Longest Common Prefix using Word by Word Matching
Given an array of strings arr[], the task is to return the longest common prefix among each and every strings present in the array. If thereâs no prefix common in all the strings, return "".Examples:Input: arr[] = [âgeeksforgeeksâ, âgeeksâ, âgeekâ, âgeezerâ]Output: "gee"Explanation: âgeeâ is the lon