Correct option is B
Step I to step VII: Words are arranged in dictionary order from left to right. If there are two similar words in statement then the words with first letter in capital will be arranged first before the second one.
Step II: an and every peer to for
Step III: an and every for to peer
Step IV: an and every for peer to