Ruby Playground - Q29. last occurrence of word: Online Interpreter, Compiler & Editor | Sololearn