What if the size is same ? can i print any?

The question should be precise…
https://hack.codingblocks.com/contests/c/380/1665

No size is not same.
Question is designed in such a way that there is only one answer so you dont need to think about which string you need to print.