Brahma Prakash Shukla

Brahma Prakash Shukla

  • 215
  • 8.7k
  • 233.2k

Coding Problem

Nov 14 2022 2:05 PM

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)