algorithm quiz