codeMantra interview question

i cant share the ques