Write a function that takes two arrays of strings and returns the longest string found in either array?
Login to Submit
The function solve(arr1, arr2) takes two arrays of strings, combines them, and returns the longest string among all. input:["boqKY", "sQhJW", "wpwD", "AXBNr"],["ZYXK", "hrC", "KEmgC", "DJj"] output:"boqKY" input: ["OiLUY", "FgxZEb", "jRfBnhP"] , ["zHz", "GcS"] ouptut: "jRfBnhP"