J. Crew Interview Question

How to you find a string and replace using vi editor? How do you do it in bash or windows without Vi?