Have been trying to solve this today but couldnt get to a solution.
Question
You've been trying to gain entry to the lab for a while now. To open the door, you need to enter a password on the keyboard connected to it. To that end, you've been watching and meticulously recording everything you can see around the entrance. You've finally had a big break when you were able to acquire the notes of technicians:
Input: anagram
Rotation table:
anagrama
agramana
ramanagr
managram
Sort table:
agramanagr
anagramana
ma
ramanagram
Output:
nr$aaagm
After carefully studying the notes, you've managed to decipher them. The string is treated as if it is wrapped around a ring, and that ring is rotated.
The note also contains something that you have reason to suspect is the password after having been put through the above process.
Output:
endrtednedd:/os....cp.rnnn.rhhps/.tt$sfeaiaaofd.ow.otooapa.asu./thhse
From this output, how can we get the original string (i.e. password) back. Example using nr$aaagm as output, the password is anagram.