TO THE NEW Interview Question

basic loop concept mysql ,