YOU HAVE MADE A SMARTPHONE APP AND WANT TO SET ITS PRICE SUCH THAT THE PROFIT EARNED IS MAXIMISED. THERE ARE CERTAIN BUYERS WHO WILL BUY YOUR APP ONLY IF THEIR BUDGET IS GREATER THAN OR EQUAL TO YOUR PRICE.

TITLE:-Maximum Profit on AppPROBLEM:- You have made a smartphone app and want to set its price such that the profit earned is maximised. There are certain buyers who will buy your app only if their budget is greater than or equal to your price. You will be provided with a list of size N having…