Question: please help me get the correct code in C++ to get these outputs and i cant change the main.cpp only add on and please show

Single-Function (Codewriting) Implement the function in your preferred language. When run, your function is wrapped in a class, so some declarations may result in a Syntax (Compilation) Error. trct1 linouts a:m11111000 Erpected Cutapus "1111" Click the "Run Tests" button t output and console logs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
