Resonai interview question

Given an integer, print out all the digits