Meta Interview Question

Simple combinatorial generation