• + 0 comments

    def matchingStrings(stringList, queries):

    countArr = []
    
    for i in queries:
    
        count = 0
    
        for j in stringList:
    
            if i == j:
                count += 1
        countArr.append(count)
    return countArr