Click Final_Algorithm_Question.pdf link to view the file.