Pergunta de entrevista da empresa Pillir

How to reverse and print the string/number? Ex: 1234.

Resposta da entrevista

Sigiloso

24 de mar. de 2022

Split the number and convert it as array. Then loop one by one and push the element in reverse order. Then join the elements and print.