interview question find diff ( interval ) pairs

pure storage interview question