Paytm Interview Question

3 coding question based on string,Question related to Mysql and linux.Some basics question from java.