Recro interview question

They asked me about basic logics like for loop with some conditions