If the pilgrim does Tawaaf al-Ifaadah and forgets one of the circuits, and a long time has passed, then he should repeat his Tawaaf, but if only a short time has passed, he should make up the circuit that he missed.
And Allah is the Source of strength. May Allah send blessings and peace upon our Prophet Muhammad.