Capital One Interview Question

Technical had two questions and 45 min; med difficulty