Mphasis interview question

How to prevent attack