SZI Technologies Interview Question

How to run a loop in database