Janea Systems Interview Question

Write code that prints all combinations given a string and k