Test assignment for a company which should remain nameless :)
Problem statement:
Given a long string (~100000 symbols) replace all the substrings "abcdef", "123456 yzq", "qwerty qwerty", "dfghjkjkl" with a symbol '*'
Files overview:
in.txt - file with input string
out.txt - file with modified string
replacements.txt - list of replacements to perform on input string formatted as:
<word_to_replace> <new_line> <word_replace_with>