Working solutions to problems 3,5,and 8

Tried not to use many built in functions.  Problem 3 has multiple solutions