How To Identify Finite And Infinite Sequence