<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described.
<END_TASK>
<USER_TASK:>
Description:
Mode of frequencies of given array elements
Python3 program of the above approach ; Function to find the mode of the frequency of the array ; Stores the frequencies of array elements ; Traverse through array elements and count frequencies ; Stores the frequencies 's of  frequencies of array elements ; Stores the minimum value ; Find the Mode in 2 nd map ; search for this Mode ; When mode is find then return to main function . ; If mode is not found ; Driver Code

<ASSISTANT_TASK:>
Python Code:
from collections import defaultdict 
 import sys 
 def countFreq(arr , n ) : 
	 mp1 = defaultdict(int ) 
 for i in range(n ) : 
	 mp1[arr[i ] ] += 1 
 mp2 = defaultdict(int ) 
 for it in mp1 : 
 mp2[mp1[it ] ] += 1 
 M = - sys . maxsize - 1 
 for it in mp2 : 
	 M = max(M , mp2[it ] ) 
 for it in mp2 : 
 if(M == mp2[it ] ) : 
	 return it 
  return 0 
    if __name__== "__main __": 
	 arr =[6 , 10 , 3 , 10 , 8 , 3 , 6 , 4 ] 
 n = len(arr ) 
 print(countFreq(arr , n ) ) 
 
<END_TASK>
