Print the element whose frequency lies in the range [ l , r ]
if ( mp . ContainsKey ( arr [ i ] ) && l <= mp [ arr [ i ] ] && ( mp [ arr [ i ] ] <= r ) ) { Console . Write ( arr [ i ] + " ▁ " ) ; } } }