Accenture interview question

normal oops concept and some leetcode questions