Capital One interview question

Python Coding Question on Data Wrangling