Approach hintTry it first, then revealHide
At each index decide whether to include the element, recording the current path at every node of the recursion; undo each choice after exploring it.
At each index decide whether to include the element, recording the current path at every node of the recursion; undo each choice after exploring it.