Infosys interview question

Coding questions and some dsa