Clean 3843 solution code