Ebix interview question

how to perform multiple loops