Question d’entretien chez Freshworks

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