Updating file ch2/10.cpp

Signed-off-by: juanuribe <jonusprime@gmail.com>