"Question" - Python coding question

 


 

CODING QUESTION

Here is question

SOLUTION

Here is code

Input :

Output :