C++ Playground - algorithm of friendship explained: Online Interpreter, Compiler & Editor | Sololearn