Are they the same?

Problem Name:
Are they the same?
Site:HackerEarth
Links:
Tags:
Problem setters: