You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Peter is teaching ABCD.. to his younger brother through a game. The rules of the game include peter speaking 2 characters, and expecting his brother to speak all the alphabets in between based on the following conditions.
The two characters should be alphabets, in either case.
First alphabet should be smaller.
In all other cases ERROR should be displayed.
Input Format
two alphabets as input
Constraints
The two characters should be alphabets, in either case.
First alphabet should be smaller.
In all other cases ERROR should be displayed.
Output Format
Aplhabets in between or ERROR.
Sample Input 0
H X
Sample Output 0
H I J K L M N O P Q R S T U V W X
*/
// kirtan jain
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) {
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */