TalentPace interview question

print highest difference into array