Update AllEvensToLeftandOddsToRight.java

inputArray needs to be checked for null before fetching the length else -
int j = inputArray.length - 1;//throws NullPointerException