Saxo Bank interview question

Can we use visitor instead on composite pattern?