Please Align the question properly

Alignment of the question is not proper, for which i failed to submit the answer even though i got it.

(I lost the first half of code in Python Language… not sure about other languages)
Click here to start solving coding interview questions