Roche Interview Question

Describe how you can make an algorithm that can print all possible sequences with infinite length