The problem is to find the longest common prefix in an array of strings ie. [flower, flow, flight] The code I wrote works when I run it in terminal using gcc but when I try