Capital One interview question

Just the typical Codesignal coding problems