note memory limit problem usuallet consider array consist positive integer position contain gapsWe collection number fill gap each number give collection onceyour task determine way fill gap long increase subsequence form array maximum size