C++: add exercise

Signed-off-by: Micky Ching <mickyching@gmail.com>