This is an Azure Function using C# in .NET 5.0 to find next available lowest numbered server.
Problem
You have a stack of servers that maybe unavailable. The servers are numbered. We want to post a list of all servers with issues and find the next lowest number server to return.
Input
[
{"number":5},
{"number":2},
{"number":1}
]
Output
{
"number": 3
}