Question on Cryptography

Hi I found this interesting Cryptography question and I need some help in solving this?

Question is in the image below