eGain interview question

Longest parenthesis How to secure rest api