XYZ interview question

javascript question which contain pattern print.