Bitdefender interview question

Write a C++ function that transfers a file between 2 processes.