Eli Lilly and Company interview question

Questions about joins, printing patterns