Spotify Interview Question

create a loop writing one string in one case, and another in other case. simple sql soring exercise. Given some data what analysis would I suggest to do.