Following are the few sample solutions provided by us: