If I am not wrong, I think the fastest solution mentioned in the editorial is wrong. It just makes use of a loophole of the grader. it is simply printing the required values on the console without actually creating a deep copy. So Please update the solution [fastest] as it does not fulfil the requirement of question.
Yes you are absolutely right fastest is also not passing the trivial test cases of the above problem