Lumachain interview question

Implement api using .net visual studio