Pregunta de entrevista de TikTok

Find subsets of an integer array with distinct elements. Leetcode Subsets problem.