solved q.1.12
solved q1-17