Update hello.cpp

add sub method
Merge pull request #1 from Ritika-Bhatt/sub

Update hello.cpp