Not able to solve this problem

Test cases are failing

hi @divyanshinegi2003_987b3f0f92dd8c0c,
refer https://www.youtube.com/watch?v=Q1TYVUEr-wY

refer