Why test case1 is wrong?
what difference does it make?
in urs code u will always return -1.
but
this line will return value that is given by this function call , which may or may not be -1
what difference does it make?
in urs code u will always return -1.
but
this line will return value that is given by this function call , which may or may not be -1