Synechron Interview Question

Write a program to print the given sequence.