This repo is the c++ implementation of javascript code in the youtube video by freeCodeCamp The video features Alvin Zablan from Coderbyte.
remove the following block inside main () from code and run in your local environment normally
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
// freopen("error.txt", "w", stderr);
freopen("output.txt", "w", stdout);
#endif