Swissquote interview question

About design pattern and Swift