Function takes in an array of numbers , dynamically goes on the location and makes combination of numbers .
static boolean isSubSeqDivisible ( String str ) { int n = str . length ( ) ; int dp [ ] [ ] = new int [ n + 1 ] [ 10 ] ;