Capital One interview question

Leetcode Medium question the case study was some business AI bot