Thanks for feedback about convention and variable naming- you're totally correct I should work on both.
As far as 0 input, they actually told me it would always be valid so edge cases were not accounted for.
As far as 0 input, they actually told me it would always be valid so edge cases were not accounted for.
But, yeah. Casing convention was surprisingly important in one of my interviews. They wanted to know that I was able to adapt to a new language as the job was for a language I didn't have on my resume. It's weird, but I understand where they're coming from. Seeing improper styling in a code review is an immediate red flag and an interview problem is ultimately a code review.