New month, new code golf!
You will receive a string with a label code with numbers and letters. Our challenge is to check if this code begins with 1, 2, or 3 and ends with A, B, C, S, or R. It should return true(1) if so or return false(0) otherwise. As usual shortest solution wins.
##Input
"198739A79D9R"
##Output
1
##Note
- The string only contains numbers and upper-case letters. No other special characters.
- Use this code to check the solution length
- You also can use this test case here
Rules
- The signature of the contest entry MUST be:
.png)
