I was asked to write down a Java function sharedStr that by given 2 sorted arrays of Strings, returns the number of Strings that appea
The fact that the arrays are sorted is a red herring, it is irrelevant to the solution.
Use a Map