Using Long instead of Int

Continuing the discussion from Unable to pass all test cases:

hello mam,
why we use long data type instead of int. As our question is asking a integer type input.

see the constraints for the question