Candid Health interview question

Runtime and big O notation