Topic: Queue Problem / Level: intermediate

Problem: Write a program to find the length of the longest subsequence in a queue.

Run the code to see the output here...