Am I just not cut out for coding?

It’s not a mistake if the test cases pass - using a switch with fall-through cases is perfectly valid - you’d be surprised how often it is found in highly advanced software

I wrote this about problem solving just a little while ago