Company: Amazon_10dec
Difficulty: medium
Productive Team of Four Workers body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", "Arial", sans-serif; line-height: 1.6; } h1, h2 { border-bottom: 1px solid #ccc; padding-bottom: 5px; } code { background-color: #f4f4f4; padding: 2px 4px; border-radius: 4px; font-family: "Courier New", Courier, monospace; } pre { background-color: #f4f4f4; padding: 10px; border-radius: 4px; white-space: pre-wrap; } ul { list-style-type: disc; margin-left: 20px; } li { margin-bottom: 10px; } table { border-collapse: collapse; width: 100%; margin: 20px 0; } th, td { border: 1px solid #ddd; padding: 8px; text-align: left; } th { background-color: #f2f2f2; } Productive Team of Four Workers Problem Description The manager of an Amazon warehouse wants to create a productive team of four workers for their latest order. There are n workers, where the level of the i th worker is represented by the array level[i] , and the level of each worker is a unique integer from