PrognoCIS interview question

reverse digit program