Why my input is different?

@Nitya_Somani Hi nitya here is ya corrected code with comments

Happy Coding!