apple pie's submission of Equal Strings | CodeChef