R/GA interview question

lets see the work.