Driver code
public static void main ( String [ ] args ) { int arr [ ] = { 2 , 3 , - 4 , - 1 , 6 } ; int n = arr . length ; Pair point = findSubArray ( arr , n ) ; System . out . print ( " Subarray ▁ starting ▁ from ▁ " ) ; System . out . println ( point . first + " ▁ to ▁ " + point . second ) ; } }