Petya and Strings (String compare) solution