Finds if it is possible to partition str into two parts such that first part is divisible by a and second part is divisible by b .
void findDivision ( string & str , int a , int b ) { int len = str . length ( ) ;