Another solution by Maurice Naftalin.