Added some comments to solveRiddle method.