Sub-arrays using bits

check why this code is not working

Pls Send the question link

It’s in the last video lecture of bitmasking: generating subsets using bits