Solution.java

My Algorithm : 
get the two arrays (A,B) and then store the difference of each of element of array A to k in a third array C,  i.e : c[i]=k-A[i]. Sort array C and B and compare if element of B is less then element of C at position i , if yes break the loop and assign flag as true.Now check if the flag variable is false, then print YES else NO.