Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Keep a count of the number of times each integer occurs in nums.
Since all integers of nums[i] are distinct, if an integer is present in each array, its count will be equal to the total number of arrays.