Driver code
public static void Main ( String [ ] args ) { int [ ] ar = { - 1 , 2 , 1 , - 4 } ; List < int > arr = new List < int > ( ar ) ; int x = 1 ; Console . WriteLine ( solution ( arr , x ) ) ; } }