Interview question - The sorted square array algorithm | Curious Programmer