Flatiron Health Interview Question

Basic R data manipulation questions.