Frage im Vorstellungsgespräch bei Tata Consultancy Services

Basic code snippet in my comfortable programming language