this is my code. its working fine on sample input.
My test case is getting wrong case. may please tell me how to correst it
@Adi_choudhary
We have to consider subset not subarrays.
Total number of SubSets of array of length n are 2^n.
and SubArrays of array of length n are n*(n+1)/2.