Pergunta de entrevista da empresa TikTok

Given an integer, reverse it.

Resposta da entrevista

Sigiloso

7 de out. de 2024

I reversed it by turning it into a string and then iterating through it backwards and adding it ot a new string.