Quad interview question

Explain the process in detail