A loops puzzler

A short prediction exercise on loops