Week 2 ProblemA  & Week 3 Problem C