Optiver interview question

two object oriented design problems