Pergunta de entrevista da empresa CarWale

1.Check whether two strings contain same characters in same order 2.Search in a row wise and column wise sorted matrix They will ask to improve time and space complexity for solution given by you