Answer
s1 = take input
s2 = take input
n=length(s2)
if n != length(s2):
print("Given strings are not equal")
End program
i=0
while(i<=n)
if s1[i]!=s2[i]
return False
else
i=i+1
return True
Work Step by Step
The above program first checks the length of both strings and then matches character at every index of both string if they are all same then the program concludes that the given strings are equal.