C++ Playground - logic for R pattern: Online Interpreter, Compiler & Editor | Sololearn