#include &lt;iostream&gt;    using namespace std;    const int limit = 4;    class safearray    &#123;        private:        int arr&#91;limit&#93;;        public:        int&amp; operator &#91;&#93;&#40;int n&#41;        &#123;            if &#40;n == limit - 1&#41;            &#123;                int temp;                for &#40;int i = 0; i &lt; limit; i++&#41;                &#123;                    if &#40;arr&#91;n + 1&#93; &gt; arr&#91;n&#93;&#41;                    &#123;                        temp = arr&#91;n&#93;;                        arr&#91;n&#93; = arr&#91;n + 1&#93;;                        arr&#91;n + 1&#93; = temp;                    &#125;                     &#125;              &#125;            return arr&#91;n&#93;;        &#125;    &#125;;    int main&#40;&#41;    &#123;        safearray sa1;        for&#40;int j = 0; j &lt; limit; j++&#41;            sa1&#91;j&#93; = j*10;        for&#40;int j = 0; j &lt; limit; j++&#41;        &#123;            int temp = sa1&#91;j&#93;;            cout &lt;&lt; &quot;Element &quot; &lt;&lt; j &lt;&lt; &quot; is &quot; &lt;&lt; temp;        &#125;        return 0;    &#125;
A. 0102030
B. 1020300
C. 3020100
D. error
Answer:A
#include &lt;iostream&gt;    using namespace std;    const int limit = 4;    class safearray    &#123;        private:        int arr&#91;limit&#93;;        public:        int&amp; operator &#91;&#93;&#40;int n&#41;        &#123;            if &#40;n == limit - 1&#41;            &#123;                int temp;                for &#40;int i = 0; i &lt; limit; i++&#41;                &#123;                    if &#40;arr&#91;n + 1&#93; &gt; arr&#91;n&#93;&#41;                    &#123;                        temp = arr&#91;n&#93;;                        arr&#91;n&#93; = arr&#91;n + 1&#93;;                        arr&#91;n + 1&#93; = temp;                    &#125;                     &#125;              &#125;            return arr&#91;n&#93;;        &#125;    &#125;;    int main&#40;&#41;    &#123;        safearray sa1;        for&#40;int j = 0; j &lt; limit; j++&#41;            sa1&#91;j&#93; = j*10;        for&#40;int j = 0; j &lt; limit; j++&#41;        &#123;            int temp = sa1&#91;j&#93;;            cout &lt;&lt; &quot;Element &quot; &lt;&lt; j &lt;&lt; &quot; is &quot; &lt;&lt; temp;        &#125;        return 0;    &#125;
A. 0102030 B. 1020300 C. 3020100 D. error
Explanation:In this program, we are returning the array element by the multiple of 10.