Capital One Interview Question

Basic questions about r and python