Joined creating the ages list and finding max elenent in one loop
Rewrited program with pointers instead of ints