Can Anyone please explain third sample case how it takes the value 120

According to me ans to third sample case will be 130

Hello @anuranjan8319918906
from 20 20 to 25 25 -> time 10
then 25 25 to 30 30 -> time 0
then 30 30 to 35 35 -> time 10
then 35 35 to 50 50 -> time 0
then 50 50 to 100 100 -> time 100

total time=10+0+10+100 =>120

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.