given 4 test cases as input and while debugging it is expecting a single output rather than 4 outputs and giving my answer a invalid made my time total waste. Useless platform to learn , i am so angry :~{.
Thanks for reporting, this is fixed.