Pregunta de entrevista de XYZ

javascript question which contain pattern print.