Coderbyte Array Challenge Solution Java