algorithms problems week 1 post