TPP interview question

Mostly sequences and wordp roblems