Update Facebook Programming Challenge 3.cpp