Good subsequences

Problem Name:
Good subsequences
Site:HackerEarth
Links:
Tags:
Problem setters: