Massive over hiring and random acquisitions are there main reasons why are they here. If they hadn't increased their headcount by 5k and continued focusing on their core products the company would already be profitable (even if revenue would be lower).
At this point it's too late to significantly cut costs, so yeah seems like they pushed themselves into a corner.
The sad part is that it was already perfectly obvious where were they heading after they IPO'ed.