String compare function

In this video, on comparing Apple and Mango, he got -12.
and I am getting -1 on comparing the two using s0.compare[s1] function.

hello @ikshuldureja130
pls save ur code here-> https://ide.codingblocks.com/
and share its url with me