Java Sort Part Of Array Interview