Continental interview question

oops concepts