noon interview question

Simple design prob