Problem 6 reversed dictionary