Pregunta de entrevista de Freshworks

given a integer number reverse the same. example: input - 123 output -321