Count consonants and vowels separately using recursion.
Difficulty: Hard
Phase: 3 · Recursion
XP Reward: 30 XP
Topics: Recursion, Hard
Supported Languages: Python, JavaScript, C, C++, Java
Problem Description
Given string S, count consonants and vowels recursively. Print in format 'Vowels: V, Consonants: C'. Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).
Constraints
- -10^9 <= N <= 10^9
Examples
Example 1
Input: apple
Output: Vowels: 2, Consonants: 3
Explanation: Sample execution for input apple