Precisely, the first question was to Print the list of numbers in an array fall beyond the average of the total numbers of the same array. And generate the test cases assuming it is a black box.
(Intention here is to generate the exhaustive test cases)
And another question is Design and code An API takes following parameters as input and inserts them into a relational database table. Of these parameters, few of them are mandatory fields.
How would you implement your API?
TestcaseId, TestCaseName, TestCase Description, TestCaseExecutionId, TestCaseExecutionStatus, TestSteps, TestLabels, IsActive, IsAutomated, TestPriority
TestcaseId, TestCaseExecutionId and TestCaseExecutionStatus are mandatory fields. How do you handle this?
NOTE: Remember the time is very limited constraint and Interviewer always expects a refined code including exception handling scenarios. No excuses.