X interview question

Use regex to print a pattern in linux.