Infinite loops circuit problem 1

Question

Hints

Answer