Code not giving correct output
hi anubhav,
You were just doing one small mistake,instead of taking year as 1 in function you were taking it 0
I have marked it in the above code.
Please let me know if there is any other doubt.
how do you able to debug it ? i want to learn too