Capital One Interview Question

Just the typical Codesignal coding problems