Function to check if there exists any arrangements of the arrays such that sum of element lie in the range [ K / 2 , K ]
static void checkArrangement ( Integer [ ] A1 , Integer [ ] A2 , int n , int k ) {