Domanda di colloquio di Samsung Electronics

I was asked to split integer into digits