It removes i characters starting from index 0
str = str . Substring ( i ) ; return str ; } static void findPairs ( int sum , int K ) { String A , B ; A = " " ; B = " " ; String N = String . Join ( " " , sum ) ; int n = N . Length ;