Testcases failure due to wrong answer. Logic is according to the question.
Link to the code : https://ide.codingblocks.com/s/199619
Testcases failure due to wrong answer. Logic is according to the question.
Link to the code : https://ide.codingblocks.com/s/199619