Frage im Vorstellungsgespräch bei Freshworks

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