Revert "Update 442.cpp"

This reverts commit 159b62d2618750425410a69c1eb6c38f556264dc.
Revert "Revert "Update 442.cpp""

This reverts commit 58ae93ffbc744f9ddc0b31008a59a31906d8c31e.