Infosys interview question

oops concept ml dsa program algorithm