Baker Hughes interview question

All data structure, OOP concepts