Knolskape Solutions interview question

Basic algorithms