HP Inc. interview question

Differences between some dessign patterns