Domanda di colloquio di Capital One

Coding question was asked on the test