Analyst Institute interview question

They asked me to solve a problem using sample data and R code.