If the character is + , add sum of top two elements from the stack
else if ( ops [ i ] == " + " ) { int a = pts . Pop ( ) ; int b = pts . Peek ( ) ; pts . Push ( a ) ; ans += ( a + b ) ; pts . Push ( a + b ) ; }