Pergunta de entrevista da empresa X

Describe how you will code an infinite loop problem