Implement moveDirectory(String currentDirectory, String command) handling commands like "cd /", "cd ..", "cd temp", "cd ../solution".
Asked in the Codility screen stage as a Codility online test.
Implement move_directory(current_directory, command). current_directory is an absolute path, and command is a valid command beginning with cd . Return the resulting normalized absolute path. Resolve ., ignore repeated slashes, process .. without moving above /, and treat a target beginning with / as absolute.
current_directory is an absolute path beginning with /.command is valid and begins with cd .., or ...def move_directory(current_directory, command):