First Problem

Wrote a method that will return the answer to the first problem.