I don't get this ,than i take solution but the solution in another language

please give the solution in python

Hey @Deep50, this is the solution in python,

Hope this resolved your doubt.
Plz mark it as resolved in my doubts section. :blush:

its working ,thank to you . can you explain this code

Hey @Deep50, the code is very basic, and self explanatory, plz try it on pen and paper.