“main” functions that accept a single string array or string rest parameter, are the named entry points to…