Java program to find all elements in array which have at - least two greater elements itself .
import java . util . * ; import java . io . * ; class GFG { static void findElements ( int arr [ ] , int n ) {