How it works
A casual yes/no question built with の (right?) instead of か (question) — it softens the asking and shows real curiosity. 好き (like) is a na-adjective; before の (right?) the copula shows up as な (is), giving 好きなの (do you like it?). The topic (水泳 (swimming)) is named bare up front.