A - Appearance Count | CodeChef