Write a method to find the longest common prefix in an array of strings. If no common prefix is found return an empty string.
commonPrefix({firecode, fireacb, fireac}) ==> "fir"
public static String commonPrefix(String[] arrs) { }