2
Answers

Coding Problem

How can we check if a string 'Ra' appears at index 1 in a given string. If it appears return a string without 'Ra' otherwise return the original string.

Sample Input:
"Ram"
"Rat"
"Coding"


Expected Output:

m
t
Coding
Answers (2)