Juniper Networks interview question

Write code in C to generates combinations from multiple list.