23 Nov 2022
20 Nov 2022
I didn't get the diff between this output and the correct one
Thanks for reaching out.
Yes, this is also a valid solution. The only difference is that you count the employees with the same salary.
Hope this helps.