Rishabh Software interview question

Totally Technical Question