Nagarro Interview Question

longest increasing substring from two given strings