Lyft Interview Question

They gave me a complex problem and asked me to pseudo-code some complex SQL on a whiteboard to solve it.