Solution for 5_reverse_cipher