"KCTS"4#v(0"dedaol KCTS :DOOG">:#,_$a, v >0"dedaol ton KCTS :DAB">:#,_$a,@ v < >nC#v_CC1-#v_0"orez 0 sehsup Cn :DOOG">:#,_$a, v >0"eulav a hsup ton did Cn :DAB">:#,_$a,@ >0"orez hsup ton did Cn :DAB">:#,_$a,@ v < >n555C3-#v_0"3 dehsup C555n :DOOG">:#,_$a, v >0"3 hsup ton did C555n :DAB">:#,_$a,@ v < >n11152#vBC4-#v_0"ezis kcats eht egnahc ton did B25111n :DOOG">:#,_$a,v >0"ezis kcats eht degnahc B25111n :DAB">:#,_$a,@ >0"B25111n no detcelfer B :DAB">:#,_$a,@ v < >$$5-#v_0"noitisop tcerroc eht ta decalp saw 5 :DOOG">:#,_$a, v >0"noitisop tcerroc eht ta decalp ton saw 5 :DAB">:#,_$a,@ v < >n1150#vB5-#v_0"kcats fo pot no 5 tfel B0511 :DOOG">:#,_$a,v >0"pot no 5 evael ton did B0511 :DAB">:#,_$a,@ >0"B0511 no detcelfer B :DAB">:#,_$a,@ v < >n153#vB0"tcelfer ton did B351n :DAB">:#,_$a,@ >0"detcelfer B351n :DOOG">:#,_$a,v v < >n0#vB0"tcelfer ton did B0n :DOOG">:#,_$a,v >0"detcelfer B0n :DAB">:#,_$a,@ v < >501-#vB#v_5-#v_0"kcats eht otno orez 1 dehsup B-105 :DOOG">:#,_$a,v >0"B-105 retfa thgir ton saw kcats :DAB">:#,_$a,@ >0"B-105 retfa kcats fo pot no ton saw 0 :DAB">:#,_$a,@ >0"B-105 no detcelfer B :DAB">:#,_$a,@ v < >3213D1-#v_1-#v_2-#v_2-#v_3-#v_3-#v0"dekrow D3123 :DOOG">:#,_$a,v > > > > > >0"deliaf D3123 :DAB">:#,_$a,@ v < >n123456742K5-#v_4-#v_3-#v_7-#v_6-#v_2-#v_1-#v_ v v ; v < < < < < < < ;< >0":)5 4 3 7 6 2 1( eb dluohs ,krow ton did K247654321 :DAB">:#,_$v @,aPK247654321n< >0"yltcerroc dekrow K247654321 :DOOG">:#,_$a,v v < >n12101-#vK0"tcelfer ton did dne evitagen htiw K :DAB">:#,_$a,@ >0"detcelfer dne evitagen htiw K :DOOG">:#,_$a,v v < >n1201-1#vK0"tcelfer ton did trats evitagen htiw K :DAB">:#,_$a,@ >0"detcelfer trats evitagen htiw K :DOOG">:#,_$a,v v < >n1224#vK0"tcelfer ton did trats naht repeed dne htiw K :DAB">:#,_$a,@ >0"detcelfer trats naht repeed dne htiw K :DOOG">:#,_$a,v v < >n123422#vK2-#v_4-#v_3-#v_1-#v_0"dekrow K224321 :DOOG">:#,_$a, v > > > >0"krow ton did K224321 :DAB">:#,_$a,@ >0"K224321 no detcelfer K :DAB">:#,_$a,@ v < >1254#vK#v_#v_2-#v_1-#v_#v_#v_0"yltcerroc dekrow K4521 :DOOG">:#,_$a, v > > > > > >0"yltcerroc krow ton did K4521 :DAB">:#,_$a,@ >0"detcelfer K4521 :DAB">:#,_$a,@ v < >n43213#vN3-#v_2-#v_1-#v_4-#v_0"dekrow N31234 :DOOG">:#,_$a, v > > > >0"krow ton did N31234 :DAB">:#,_$a,@ >0"detcelfer N31234 :DAB">:#,_$a,@ v < >n432103-#vN0"tcelfer ton did tnuoc evitagen htiw N :DAB">:#,_$a,@ >0"detcelfer tnuoc evitagen htiw N :DOOG">:#,_$a,v v < >n214#vN#v_#v_2-#v_1-#v_0"dekrow N412n :DOOG">:#,_$a, v > > > >0"krow ton did N412n :DAB">:#,_$a,@ >0"detcelfer N412n :DAB">:#,_$a,@ v < >321R3-#v_2-#v_1-#v_0"yltcerroc dekrow R123 :DOOG">:#,_$a,v > > >0"krow ton did R123 :DAB">:#,_$a,@ v < >n#vR0"tcelfer ton did kcats ytpme htiw R :DOOG">:#,_$a,v >0"detcelfer kcats ytpme htiw R :DAB">:#,_$a,@ v < >321#vS1-#v_2-#v_2-#v_3-#v_0"dekrow S123 :DOOG">:#,_$a, v > > > >0"krow ton did S123 :DAB">:#,_$a,@ >0"detcelfer S123 :DAB">:#,_$a,@ v < >n1#vSC3-#v_1-#v_#v_#v_0"yltcerroc dekrow S1n :DOOG">:#,_$a, v > > >0"yltcerroc krow ton did S1n :DAB">:#,_$a,@ >0"3 fo ezis kcats evah ton did S1n :DAB">:#,_$a,@ >0"detcelfer S1n :DAB">:#,_$a,@ v < >n#vSC3-#v_#v_#v_#v_0"yltcerroc dekrow Sn :DOOG">:#,_$a, v > > >0"yltcerroc krow ton did Sn :DAB">:#,_$a,@ >0"3 fo ezis kcats evah ton did Sn :DAB">:#,_$a,@ >0"detcelfer Sn :DAB">:#,_$a,@ v < >123#vT3-#v_1-#v_2-#v_0"dekrow T321 :DOOG">:#,_$a,v > > >0"yltcerroc krow ton did T321 :DAB">:#,_$a,@ >0"detcelfer T321 :DAB">:#,_$a,@ v < >12#vT2-#v_#v_1-#v_0"yltcerroc dekrow T21 :DOOG">:#,_$a,v > > >0"krow ton did T21 :DAB">:#,_$a,@ >0"detcelfer T21 :DAB">:#,_$a,@ v < >2#vT2-#v_#v_#v_0"yltcerroc dekrow T2 :DOOG">:#,_$a, v > > >0"yltcerroc krow ton did T2 :DAB">:#,_$a,@ >0"detcelfer T2 :DAB">:#,_$a,@ v < >1234#vU0"tcelfer ton did U4321 :DAB">:#,_$a,@ >0"detcelfer U4321 :DOOG">:#,_$a,v v < >12342#vU2-#v_2-#v_1-#v_0"yltcerroc dekrow U24321 :DOOG">:#,_$a, v > > >0"yltcerroc krow ton did U24321 :DAB">:#,_$a,@ >0"detcelfer U24321 :DAB">:#,_$a,@ v < >1233#vU#v_3-#v_2-#v_1-#v_0"yltcerroc dekrow U3321 :DOOG">:#,_$a, v > > > >0"yltcerroc krow ton did U3321 :DAB">:#,_$a,@ >0"detcelfer U3321 :DAB">:#,_$a,@ v < >n0#vU0"tcelfer ton did U0 :DAB">:#,_$a,@ >0"detcelfer U0 :DOOG">:#,_$a,v v < >n#vU0"kcats ytpme no tcelfer ton did U :DAB">:#,_$a,@ >0"kcats ytpme no detcelfer U :DOOG">:#,_$a,v v < >0" : ) 3 2 1( tnirp dluohs P321 :FEDNU">:#,_$n123Pv v < >a3*4+00pv v < >0"abc"#vZ'a-#v_'b-#v_'c-#v_0"yltcerroc dekrow Z"00g"cba"00g"0 :DOOG">:#,_$a,v > > >0"krow ton did Z"00g"cba"00g"0 :DAB">:#,_$a,@ >0"detcelfer Z"00g"cba"00g"0 :DAB">:#,_$a,@ v < >n#vZC1-#v_0"0 dehsup dna tcelfer ton did Zn :DOOG">:#,_$a, v >0"0 hsup ton did tub tcelfer ton did Zn :DAB">:#,_$a,@ >0"detcelfer Zn :DAB">:#,_$a,@ v < >32130100#vW v >0"detcelfer W00103123 :DAB">:#,_$a,@ v < >00g1-#v_01g2-#v_02g3-#v_0"yltcerroc dekrow W00103123 :DOOG">:#,_$a, v > > >0"yltcerroc krow ton did W00103123 :DAB">:#,_$a,@ v < >30100#vG1-#v_2-#v_3-#v_0"kcab atad eht daer yltcerroc G :DOOG">:#,_$a, v > > >0"atad eht kcab daer ylreporp ton did G :DAB">:#,_$a,@ >0"detcelfer G :DAB">:#,a_$a,@ v < >03-0100#vG0"tnuoc evitagen no tcelfer ton did G :DAB">:#,_$a,@ >0"tnuoc evitagen no detcelfer G :DOOG">:#,_$a,v v < >03-0100#vW0"tnuoc evitagen no tcelfer ton did W :DAB">:#,_$a,@ >0"tnuoc evitagen no detcelfer W :DOOG">:#,_$a,v v < >00100#vW0"tnuoc orez no tcelfer ton did W :DOOG">:#,_$a,v >0"tnuoc orez no detcelfer W :DAB">:#,_$a,@ v < >00100#vG0"tnuoc orez no tcelfer ton did G :DOOG">:#,_$a,@ >0"tnuoc orez no detcelfer G :DAB">:#,_$a,@ Expected Output: ---------------- GOOD: STCK loaded GOOD: nC pushes 0 zero GOOD: n555C pushed 3 GOOD: n11152B did not change the stack size GOOD: 5 was placed at the correct position GOOD: 1150B left 5 on top of stack GOOD: n153B reflected GOOD: n0B did not reflect GOOD: 501-B pushed 1 zero onto the stack GOOD: 3213D worked GOOD: 123456742K worked correctly GOOD: K with negative end reflected GOOD: K with negative start reflected GOOD: K with end deeper than start reflected GOOD: 123422K worked GOOD: 1254K worked correctly GOOD: 43213N worked GOOD: N with negative count reflected GOOD: n214N worked GOOD: 321R worked correctly GOOD: R with empty stack did not reflect GOOD: 321S worked GOOD: n1S worked correctly GOOD: nS worked correctly GOOD: 123T worked GOOD: 12T worked correctly GOOD: 2T worked correctly GOOD: 1234U reflected GOOD: 12342U worked correctly GOOD: 1233U worked correctly GOOD: 0U reflected GOOD: U reflected on empty stack UNDEF: 123P should print (1 2 3 ) : (1 2 3 ) GOOD: 0"abc"Z worked correctly GOOD: nZ did not reflect and pushed 0 GOOD: 32130100W worked correctly GOOD: G correctly read the data back GOOD: G reflected on negative count GOOD: W reflected on negative count GOOD: W did not reflect on zero count GOOD: G did not reflect on zero count