Airbnb Interview Question

It was a non-standard coding problem