SAP Ariba Interview Question

Basic java DS, another one involving string reversal