Microsoft Interview Question

How to generate all lowcase and upcase letter string according to a specific letter string.