Pergunta de entrevista da empresa XYZ

javascript question which contain pattern print.