Function to calculate any permutation divisible by 8. If such permutation exists , the function will return that permutation else it will return - 1
static boolean isSubSeqDivisible ( String str ) { int i , j , k , l = str . length ( ) ; int arr [ ] = new int [ l ] ;