Find the greatest common integer in two unsorted arrays -- Amazon