UST interview question

How to avoid trigger recursion?