Freshworks Interview Question

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