KPMG interview question

picking the next random shape in a sequence