Mubashir was reading about Polydivisible Numbers on Wikipedia.
In mathematics a Polydivisible Number (or magic number) is a number in a given number base with digits abcde... that has the following properties:
Create a function which takes an integer n and returns true if the given number is a Polydivisible Number and false otherwise.
isPolydivisible(1232) ➞ true
// 1 / 1 = 1
// 12 / 2 = 6
// 123 / 3 = 41
// 1232 / 4 = 308
isPolydivisible(123220 ) ➞ false
// 1 / 1 = 1
// 12 / 2 = 6
// 123 / 3 = 41
// 1232 / 4 = 308
// 12322 / 5 = 2464.4 // Not a Whole Number
// 123220 /6 = 220536.333... // Not a Whole Number
N/A