uploaded problem 17 script