USAA interview question

Simple string manipulation and basic math