complete algo2class-week1-problem1&2