Five9 Interview Question

I think there was a complexity problem. Can’t remember much as it was a while ago.