• + 0 comments

    Solution from my side

    def gemstones(arr):
        count = 0
        data = set(list("".join(arr)))
        for item in data:
            temp = True
            for i in range(len(arr)):
                if(item not in arr[i]):
                    temp = False
                    break
            if(temp):
                count +=1
        return count