Method Definition: def toArray: Array[(A, B)] Return Type: It returns an array from the stated map.
(3,geeks) (4,for)
(3,geeks) (4,for) (2,cs)