Detailed solution for finding the Riddle