In case you do not want to grant a user access to data dictionary tables like DBA_TABLES, but will let user B see the list of all tables belonging to user A, you can work around it with a pipelined function in schema A:
pipelined
A simple implementation of Collatz conjecture in PL/SQL: