Naumen Interview Question

Algorithms complexity