Aman Interview Question

Python version that i worked in