Thoughtworks Interview Question

Short code Using any computer programming language