Driver Code
let arr = [ 10 , 5 , - 12 , 7 , - 10 , 20 , 30 , - 10 , 50 , 60 ] ; let size = arr . length ; if ( subarrayPossible ( arr , size ) ) document . write ( " " + " " ) ; else document . write ( " " + " " ) ;