Some test cases are failing
you should only return by size when one string is prefix of the other.
you should only return by size when one string is prefix of the other.
Smjhaa ni yh kyaa bolaa
You should only return on the basis of length when one string is part of the other for example in case of Batman and Bat since Bat is prefix of Batman we will return using length but in case of Bztman and Bat, we will not return using length because Bat is not prefix string in Bztman
Code for reference purpose