NOT SO EASY MATH?

CAN THIS PROBLEM BE SOLVD WITHOUT BITMASKING?

hello @preksha_11

genration of subset is required, for that we can either use bitmasking or recurison