Money Change Dp

How to eliminate duplicates.
eg. n=4 arr[]={1,2,5} duplicates like {1 1 2} and {2 1 1}
Please check my code : https://ide.codingblocks.com/#/s/13990
@O17LPOLC0033 @Prateek-Narang-10209