fixed 2-4.cpp
Merge pull request #8 from PollockCR/solution

fixed 2-4.cpp