Capital One interview question

Basic questions about r and python