Task2

Second task of first homework. About array sort.