Juniper Networks Interview Question

Write code in C to generates combinations from multiple list.