Citi Interview Question

One questions about dense rank