Your task is to declare a scoped enum class named PinState with two values:
PinState
Also, implement a function named toString(PinState s) that returns string "LOW" or "HIGH".
LOW
HIGH
The program will read 0 or 1, map it to the enum, and print the state.
Example Input:
0
Output:
Input:
1
Test Cases
Test Results
Input
Expected Output