X Interview Question

Describe how you will code an infinite loop problem