<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def replace(self, source, dest):
 """Replace source broker with destination broker in replica set if found."""

        for i, broker in enumerate(self.replicas):
            if broker == source:
                self.replicas[i] = dest
                return