Miliaola
Common Dp : Find a longest sequence which can be obtained.