I'm running into an issue with a program. I need a method that takes a string and returns every possible combination of upper and lower case letters for that string. For instance, cat would return:
cat
caT
cAt
cAT
Cat
CaT
CAt
CAT
The string entered could be any length though. I'm having difficulty coming up with an algorithm to do this. Could someone help me get started please?