Efficient C # program to find maximum difference between frequency of any two elements such that element with greater frequency is also greater in value .
using System . Collections . Generic ; using System ; class GFG {