Create a small web voting service that accepts simple form votes and displays the current counts.
Requirements
Implement an HTTP server that listens on port 80 and serves requests on the root path (/).
Accept POST requests with a form-encoded body containing the field vote= (e.g. vote=a or vote=b). Each POST should increment the stored count for the given option and return a success response (HTTP 200).
A GET request to / must render a human-readable HTML page showing the current vote counts for the available options. The page should reflect the increment caused by a POST (i.e., after posting one vote the count for that option should become greater than zero and that should be visible on the page).
Persisting counts across process restarts is not required; in-memory storage is acceptable.
Inputs and outputs
POST / with Content-Type: application/x-www-form-urlencoded and body like vote=b
Expected: server increments count for option "b" and returns HTTP 200.
GET /
Expected: server returns an HTML page (Content-Type: text/html) that contains the current counts in human-readable form (for example: "1 vote" or "2 votes" for an option). The page must accurately reflect votes received via POST.
File location and naming
Place your solution in /app/.
Provide a single executable server file named /app/server.js (Node.js), or /app/app.py (Python), or clearly document any different filename(s) you use in /app/. The verifier will start the service on port 80 and will interact with the root path (/).
Notes and constraints
The POST endpoint should accept standard form submissions (application/x-www-form-urlencoded).
The HTML returned by GET / must visibly show vote counts (so automated checks can detect that a vote has been recorded).
Keep the implementation simple and self-contained (no external database required).
Tests
The following test script will be used to verify your solution: