Maximize ones with limited flips | PayPal Interview Question