added Question 8

solved during algorithm analysis lecture class