Question d’entretien chez BNY

Write factorial. Three lightbulbs brain teaser. Find the error in this endless while loop.