Capital One interview question

Representing integers as strings