For each deployment external team was creating the version numbers .so i have to pick the latest version and pass the version in curl command to download .tar file.
Getting additional necessary info on this request is like trying to squeeze blood out of a stone - can't you paint the whole picture in one go so we can stop poking in the dark?
Given your listing is in VERSFILE, try
curl https://altrecmktg.com/artifactory/mediamarketing/release-$(IFS=/ read VERS REST <<<$(tac VERSFILE); echo $VERS)/altrec.tar