Red Hat interview question

Write a code to get the following things in pattern.

Interview Answer

Anonymous

Nov 12, 2021

It was easy to write the code. I just had to apply some logic and code was ready.