Given array arr [ ]
Integer [ ] ar = { 5 , 4 , 3 , 2 , 1 } ; ArrayList < Integer > arr = new ArrayList < > ( Arrays . asList ( ar ) ) ; ArrayList < Integer > ans = mergeDel ( arr ) ; System . out . print ( " [ ▁ " ) ; for ( Integer x : ans ) System . out . print ( x + " , ▁ " ) ; System . out . println ( " ] " ) ; } }