I just found this question. It has few details and indicates nothing about the reason why OP wants such output nor what they already tried.
Yet, the question has not been closed, while I saw some questions out there that:
• are elaborate, with some notes on what they did; and
• include the code of what they tried,
but that forgot to include just one thing. Maybe the database they are using, the IDE, or anything, but just one. These are shut down just 5 minutes after the question was asked. Why?
Is it because this question is rather easy to answer?
Is it so broad that any answers can be applied into it for brainstorming purposes?
I'm not asking whether I should flag this old question that ought to be closed. Rather, I'm asking why this question was not closed around the time it was asked, or soon after.