CSCI interview question

Technical Round