SRTRI interview question

simple and easy . no issue