UBS Interview Question

They asked me to pick out patterns for blocks as a cognitive test.