Home inspection damages for-sale home

Who's responsible for flooded bathroom?