Amazon interview question

Implement Atoi function, design a class for a deck of cards