Code link : https://ide.codingblocks.com/s/164739
4th testcase is taking over 2.5 seconds. Is it okay or a more efficient method is available.
Code link : https://ide.codingblocks.com/s/164739
4th testcase is taking over 2.5 seconds. Is it okay or a more efficient method is available.