thyssenkrupp interview question

How do you provide Dynamic Range in Data Source of Pivot Tables?