Added solution to example 3 https://developers.google.com/edu/c++/getting-started