This array will keep track of all the possible sum ( after modulo m ) which can be made using subsets of arr [ ] initialising boolean array with all false
boolean DP [ ] = new boolean [ m ] ; Arrays . fill ( DP , false ) ;