Nagarro interview question

longest increasing substring from two given strings