Capital One interview question

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