Saxo Bank Interview Question

Can we use visitor instead on composite pattern?