Find Maximum Envelope Nesting | Google Interview Question