Question 10
Consider the procedure given below where A and B are two rows in the "Words" dataset. Let procedure getSomething(A) returns a dictionary with characters of A.Word as keys mapped to their frequency in A.Word.
1 Procedure doSomething(A, B) 2 count = 0 3 dictA = getSomething(A) 4 dictB = getSomething(B) 5 foreach letter in keys(dictA){ 6 if(iskey(dictB, letter)){ 7 if(dictA[letter] == dictB[letter]){ 8 count = count + 1 9 }10 }11 }12 return(count)13 End doSomethingLet X.Word = "developer" and Y.Word = "designer", then, what will doSomething(X, Y) return?