It removes i characters starting from index 0
str . erase ( 0 , i ) ; return str ; } void findPairs ( int sum , int K ) { string A , B ; A = " " ; B = " " ; string N = to_string ( sum ) ; int n = N . length ( ) ;