477. Divide the sea