Java program to find the elements whose frequency lies in the range [ l , r ]
import java . util . HashMap ; import java . util . Map ; public class GFG { static void findElements ( int arr [ ] , int n , int l , int r ) {