Baker Hughes interview question

technical challenge codebase and logical