Getting one wrong test case

please check

@shivamgoel150
refer to this o(n) solution