IBM interview question

Design pattern questions in written round.