Hexaware Technologies interview question

Dsa Oops Coding question one