My code is working for the sample test case but getting WA in submitting, help!
@pratyush34 Corrected code, here.