Nextdoor interview question

Big O Algorithm and more