class Solution { public int solution(String[] s1, String[] s2) { int answer = 0; for(int j = 0 ; j < s1.length ; j++){ for(int i = 0 ; i < s2.length; i++){ if(s1[j].equals(s2[i])){ ++answer; } } } return answer; } }