SoftUni Homework Java Sort Array