Accenture Interview Question

normal oops concept and some leetcode questions