Flipkart Interview Question

Make Spotify Maximum water between 2 poles