Intuit interview question

Graph problem in OA. Longest common sequence between two arrays in Karat.