problem 1
prob 2
input output. this one was fun