Synopsys Interview Question

Big O notation and algorithm assessment.