• + 0 comments

    Python3

    def gemstones(arr):
        # Write your code here
        
        s = set(arr[0])
        count = 0
        
        for i in s:
            if all(map(lambda x: i in x, arr)):
                count += 1
                
        return count