Objective
Write a program that receives a string, a search character, and a replacement character, then substitutes only the last matching character found in the string.
Steps
$ ./last_replace "we shipped on vibes again" "a" "o"
we shipped on vibes agoin
$ ./last_replace "reloaed" "e" "i"
reloaid
$ ./last_replace "cursor" "x" "y"
cursor
$ ./last_replace "loop" "oo" "a" | cat -e
$
Expected files
Allowed functions

Objective
Write a program that receives a string, a search character, and a replacement character, then substitutes only the last matching character found in the string.
Steps
$ ./last_replace "we shipped on vibes again" "a" "o"
we shipped on vibes agoin
$ ./last_replace "reloaed" "e" "i"
reloaid
$ ./last_replace "cursor" "x" "y"
cursor
$ ./last_replace "loop" "oo" "a" | cat -e
$
Expected files
Allowed functions

Tests
Run the tests to grade your code