DataSoft Interview Question

a number given 123456, how do you separate each number