complexity problem set six 6700888