To store all the new encountered sum ( after modulo ) . It is used to make sure that arr [ i ] is added only to those entries for which DP [ j ] was true before current iteration .
temp = [ False for i in range ( m ) ] NEW_LINE