I did the exact approach which greg used in the video and it came out to be wrong and he provided a different solution.
Why are you using a different approach shown in video and in solution?

I did the exact approach which greg used in the video and it came out to be wrong and he provided a different solution.
Why are you using a different approach shown in video and in solution?

You’ll need to explain further - not sure what you mean.