Prudential interview question

OOP and Algorithms and behavioral