ALTEN Interview Question

1. python coding std , simple logic code in python