Aditya Birla Group interview question

Longest Common Subsequence with Bounded Difference