Driver Code
class GFG { public static void main ( String [ ] args ) { sol st = new sol ( ) ; int [ ] arr = { 5 , 4 , 0 , 3 , 1 , 6 , 2 } ; int res = st . arrayNesting ( arr ) ; System . out . println ( res ) ; } }