Latihan 1 dari materi Docker Compose di DevOps — praktek dengan editor kode interaktif, test case otomatis, dan hint terpandu. Langsung jalan di browser.
Buat fungsi parseComposeServices(yaml) yang menerima string simplified YAML (format key-value sederhana) dan mengembalikan array nama service.
Input format (setiap service dipisah baris kosong):
service: app
image: node:20
port: 3000
service: db
image: postgres:16
port: 5432
Return array nama service: ["app", "db"]