Examples:
Input: ar1 = [1, 5, 10, 20, 40, 80] ar2 = [6, 7, 20, 80, 100] ar3 = [3, 4, 15 , 20, 30, 70, 80, 120] Output: [80, 20] Input: ar1 = [1, 5, 5] ar2 = [3, 4, 5, 5, 10] ar3 = [5, 5, 10 , 20] Output: [5, 5]
We have a solution to this problem, please refer to the link Find common elements in three sorted arrays . We can quickly fix this problem in python using intersection dictionaries. The approach is simple,
 First convert all three lists to dictionaries with elements as keys and their frequencies as values using the Counter () .
 Now perform intersection operation for three dictionaries, as a result we get a dictionary that has common elements among three lists of arrays with their frequencies.

Exit:
[80, 20]