Question

Write a function that returns a nine digit number with condition given in example?

Login to Submit

Examples

Let's suppose the nine digit number is

abcdefghi

a should be divisible by 1
ab should be divisible by 2
abc should be divisible by 3
abcd should be divisible by 4
abcde should be divisible by 5
abcdef should be divisible by 6
abcdefg should be divisible by 7
abcdefgh should be divisible by 8
abcdefghi should be divisible by 9

The function should return that number.