Maximize profit from non-overlapping jobs | Airbnb Interview Question