Pergunta de entrevista da empresa Cyntexa

Print a number-based Z pattern. Example for N = 5: 12345 4 3 2 12345