passing only 1 testcase
Https://ide.codingblocks.com/s/121999
Hi tushar , the code that you wrote in that the second loop in function target with index ājā is running till arr.length-1 which means ājā never takes the value arr.length-1.Hence,this loop does not check the last element of your array.