Bank of America Interview Question

Given two large files. File 1 needs to be made same as File2 with using given operations. Conceptual question to check the approach of solution.