Infosys Interview Question

Write script to duplicate a test database from its prod?