Spoj Problem Bases on Double Ended Queue