So I got the idea that the concepts of this problem is similar to tsp problem.
But I have a doubt on the code that why don’t we write,
ans+=calc(mask,tid+1);
instead we have written the line of code like,
ans= calc(mask,tid+1);
this is the condition when we ignored the current T-Shirt.

