What is the time and space complexity of this whole algorithm?

No.12476015 ViewReplyOriginalReport