Robinhood Interview Question

LC medium type.