started prob 5
solved prob 5 with O(n) complexity
solved prob 6 in constant time
optimized prob 4 with a refactor
added description to prob 6