Driver Code
public static void main ( String [ ] args ) { int arr [ ] = { 2 , 3 , - 7 , 6 , 8 , 1 , - 10 , 15 } ; int n = arr . length ; int ans = firstMissingPositive ( arr , n ) ; System . out . println ( ans ) ; } }