Function to return the minimum number of elements whose sign must be flipped to get the positive sum of array elements as close to 0 as possible
public static int solve ( int [ ] A , int n ) { int [ ] [ ] dp = new int [ 2000 ] [ 2000 ] ;