Find all factors of a Natural Number
Given a natural number n, print all distinct divisors of it.Examples:Input: n = 10 Output: 1 2 5 10Explanation: 1, 2, 5 and 10 are the factors of 10. Input: n = 100Output: 1 2 4 5 10 20 25 50 100Explanation: 1, 2, 4, 5, 10, 20, 25, 50 and 100 are factors of 100.Input: n = 125Output: 1 5 25 125Note t