CSES Weird Algorithm | C++ solution explained | simple if else problem

Published --