4D Replay interview question

Very generalized to the position