Robinhood Interview Question

Again, this is pretty standard R Python coding tests