Atlas Copco Group Interview Question

he asked me Python program