Stripe Interview Question

Implement a solution to return a record from a dictionary which has the lowest key-value pair with extra constraints such as non-defined keys