Accellor Interview Question

Trigger Recursion and how to handle?