Function to check if a numeric string can be split into substrings such that the difference between the consecutive substrings is K
void isPossible ( string s , int K ) { bool valid = false ; long firstx = -1 ;