WNS interview question

Design patters?