Here , i have used a different approach .. but still wrong ans , can explain why?

@Muskan-Gupta-598128740703036 hey please explain your approach.