Added solution to 5773. Only took one try.