Qotient interview question

It's like patterns