Vizient interview question

Some computer science algorithm questions.