What’s the problem in the code submitted?
I have taken input as an integer in the list not as a string so as to use numbers.
Error in Submitted Code
Hey @nipulagarwal_09, take help from this thread,
Hope this resolved your doubt,
Plz mark the doubt as resolved in my doubts section. 
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.