A rescue operation was carried out on the tallest mountain in Ireland over the weekend after a hillwalker became stranded during their hike.