GlobalLogic interview question

Basic DSA algorithm, oops concepts and solid principles