solve problem 17 in python
solve #22 in python
solve problem 11 in python