John Doe interview question

Mostly question was asked on scenario based