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