XYZ Interview Question

javascript question which contain pattern print.