if ( a , b ) is pair than we have assigned elements in array such that pairs [ a ] = b and pairs [ b ] = a
int pairs [ ] = { 0 , 3 , 6 , 1 , 5 , 4 , 2 } ; int m = sizeof ( arr ) / sizeof ( arr [ 0 ] ) ;