Be more general and consider equality on any char sequence, not just literal Strings
Ported interview question to new testcase style