Apparatus and process for reacting over two catalyst beds