Persistent Systems interview question

They will ask you to write the code