Apolis Interview Question

Explain the Algorithm Complexity.