Domanda di colloquio di Capital One

Series of Technical Questions (How would you code this?)