• + 0 comments

    Python:

    def gemstones(arr):
        s = set(arr.pop())
        for string in arr:
            s = s.intersection(string)
        return len(s)