You are given two null-terminated strings.
Your task is to:
Do not use built-in functions like strcmp().
Example-1
Input: "apple" and "apple"
Output: 0
Example-2
Input: "cat" and "bat"
Output: 1
(because 'c' - 'b' = 1)
Example-3
Input: "abc" and "abcd"
Output: -100
(because 'a'-'a'=0, 'b'-'b'=0, 'c'-'c'=0, then '\0' - 'd' = -100)
Input
apple apple
Expected Output
0