Problem 2 of Problem set 1

Finished problem 2 of problem set 1… Had to fix an issue where range is
range(x,y) = (x, x+1, … , y-1)