Here all answers are very good [exclude mine if you want, which I added later].
- One answer is very short and pretty to be accepted.
- One explicitly calculates the value.
- One does it without any high-level functions.
- The last one is mine which I made for the time being since I haven't accepted any and I need to wait 2 days for mine. This is something like the second.
I am confused and want help as to what should be done is such cases and what I should do?