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