Prowler is the newest file management system in the market, using the following operations to prowl through folders in computers.
Your first job in Prowler is to recreate this system using C++ and one of the data structures you learned last week.
Note: You always start at /home directory
Input consist of N lines of commands that only include the commands listed above.
<folder_name> will always be a string that only contains upper/lower case letters, underscore('_') and numbers
The last command will always be 'pwd'.
The input ends by reaching end of file(EOF)
N<=100000
Hint: Use while(read command line here) to read the inputs until EOF.
Output the path from '/home' folder to current directory only when processing 'pwd' command.
You don't need to output anything for other commands.
Every output line needs to end with '\n'.