resolve Rosetta Code