Video solution does not work on trivial case


#1

Given video solution does not work for
A : -1
B : 1
C : 20

Your function returned the following :

-1

The expected returned value :

19