Question d’entretien chez Samsung Electronics

I was asked to split integer into digits