Find power-of-two subarrays within sum range | Meta Interview Question